FROM java:8-jre

RUN useradd -s /bin/bash -g root -u 1002 yarn
ADD ./target/registry.jar /app/
CMD ["java", "-jar", "/app/registry.jar"]

EXPOSE 8761